<div class="site_section_header">
	Projects
</div>
<div class="site_section_subheader">
	View and manage your projects.
</div>
<div class="site_section_subheader">
	<a href="/admin/projects/add_project"><img src="/assets/images/<?php echo $this->sPlatform; ?>/admin/apps/sm/add-project.gif" alt="Add a project" align="absmiddle" class="smallAdd" />Add a project</a>
</div>

<div id="projects_main_wrapper">
<?php
for($i = 0; $i < $qProjects->num_rows(); $i++)
{
	?>
	<div class="project_wrapper" id="project_wrapper_<?php echo $qProjects->row($i)->project_id; ?>">
		<?php echo $qProjects->row($i)->project_title; ?> 
		<div style="float:right">
			<a href="/admin/projects/edit_project/<?php echo $qProjects->row($i)->project_id; ?>"><img src="/assets/images/<?php echo $this->sPlatform; ?>/admin/icons/edit.gif" alt="Edit" align="absmiddle" class="smallEdit" />Edit</a> 
			
			<a onclick="delete_project(<?php echo $qProjects->row($i)->project_id; ?>); return false;" href="#"><img src="/assets/images/<?php echo $this->sPlatform; ?>/admin/icons/delete.gif" alt="Delete" align="absmiddle" class="smallEdit" />Delete</a>
		</div>
		<div class="clear"><!-- --></div>
	</div>
	<?php
}
?>
</div>